$tp @s[y=$(y),distance=1..] $(x) ~0.5 $(z) 0 0

function vs:system/game_ctrol/stream_minecart/anim/time_to_stop